package game.plateau.cartes;

import game.support.EmplacementFactory;
import game.support.EmplacementFactoryInterface;

public class CarteFactory implements CarteFactoryInterface {
    private EmplacementFactoryInterface emplacementFactory;
    
    public CarteFactory() {
        this.emplacementFactory = new EmplacementFactory();
    }

    public Carte create() {
        Carte carte = new CarteImpl();

        for(int i=0; i<3; i++) {
            carte.ajouterEmplacement(emplacementFactory.create());
        }

        return carte;
    }
}
